﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AlbumAdd.aspx.cs" Inherits="Admin_AlbumAdd" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <script src="resources/jquery-1.6.2.min.js" type="text/javascript"></script>
    <link href="resources/yui-reset-min.css" rel="stylesheet" type="text/css" />
    <link href="resources/basic-control.css" rel="stylesheet" type="text/css" />
    <link href="resources/edit-view.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        body
        {
            padding: 10px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div class="edit-view">
        <h1 class="title">
            <asp:Label ID="lblTitle" runat="server" Text="添加专辑"></asp:Label></h1>
        <div class="body">
            <table cellpadding="0" cellspacing="0">
                <tr>
                    <td>
                        专辑名：</td>
                    <td>
                        <asp:TextBox ID="txtAlbumName" runat="server"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                            ControlToValidate="txtAlbumName" ErrorMessage="必填"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        歌手名：</td>
                    <td>
                        <asp:TextBox ID="txtSingerName" runat="server"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                            ControlToValidate="txtSingerName" ErrorMessage="必填"></asp:RequiredFieldValidator>
                     </td>
                </tr>
                <tr>
                    <td>
                        语言:</td>
                    <td>
                        <asp:DropDownList ID="ddlLanguage" runat="server">
                            <asp:ListItem Selected="True" Value="">请选择</asp:ListItem>
                            <asp:ListItem>华语</asp:ListItem>
                            <asp:ListItem>越狱</asp:ListItem>
                            <asp:ListItem>日语</asp:ListItem>
                            <asp:ListItem>英语</asp:ListItem>
                            <asp:ListItem>法语</asp:ListItem>
                            <asp:ListItem>俄语</asp:ListItem>
                            <asp:ListItem>德语</asp:ListItem>
                            <asp:ListItem>意大利语</asp:ListItem>
                            <asp:ListItem>阿拉伯语</asp:ListItem>
                        </asp:DropDownList>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" 
                            ControlToValidate="ddlLanguage" ErrorMessage="必填"></asp:RequiredFieldValidator>
                     </td>
                </tr>
                <tr>
                    <td>
                        曲目数：</td>
                    <td>
                        <asp:TextBox ID="txtNumberOfSongs" runat="server"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                            ControlToValidate="txtNumberOfSongs" ErrorMessage="必填"></asp:RequiredFieldValidator>
                        <asp:RangeValidator ID="RangeValidator1" runat="server" 
                            ControlToValidate="txtNumberOfSongs" ErrorMessage="必须是正整数" 
                            MaximumValue="65535" MinimumValue="0" Type="Integer"></asp:RangeValidator>
                     </td>
                </tr>
                <tr>
                    <td>
                        风格：</td>
                    <td>
                        <asp:DropDownList ID="ddlStyle" runat="server" DataSourceID="srcStyles" 
                            DataTextField="MusicStyleName" DataValueField="MusicStyleID" 
                            ondatabound="ddlStyle_DataBound">
                        </asp:DropDownList>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                            ControlToValidate="ddlStyle" ErrorMessage="必填"></asp:RequiredFieldValidator>
                     </td>
                </tr>
                <tr>
                    <td>
                        发行年份： 
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlPublishYear" runat="server">
                        </asp:DropDownList>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
                            ControlToValidate="ddlPublishYear" ErrorMessage="必填"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        描述：
                    </td>
                    <td>
                        <asp:TextBox ID="txtDescription" runat="server" Columns="40" Rows="5" TextMode="MultiLine"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        <asp:Button ID="btnSubmit" runat="server" Text="提交" onclick="btnSubmit_Click" />
                    </td>
                </tr>
            </table>
        </div>
    </div>
                        <asp:ObjectDataSource ID="srcStyles" runat="server" SelectMethod="GetAllList" 
                            TypeName="AMV.BLL.MusicStyle"></asp:ObjectDataSource>
    </form>
</body>
</html>